﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCEntity.TMS.Agent.AgentAreaRecord
{
    /// <summary>
    /// 代理商区域记录
    /// </summary>
    public class AgentAreaRecordEntity
    {
        /// <summary>
        /// 代理商区域记录Id
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long AgentAreaRecordId { get; set; }

        /// <summary>
        /// 代理商记录Id
        /// </summary>
        public long AgentRecordId { get; set; }

        /// <summary>
        /// 省Id
        /// </summary>
        public long ProvinceId { get; set; }

        /// <summary>
        /// 省编码
        /// </summary>
        public string ProvinceCode { get; set; }

        /// <summary>
        /// 市Id
        /// </summary>
        public long CityId { get; set; }

        /// <summary>
        /// 市编码
        /// </summary>
        public string CityCode { get; set; }

        /// <summary>
        /// 区Id
        /// </summary>
        public long CountyId { get; set; }

        /// <summary>
        /// 区编码
        /// </summary>
        public string CountyCode { get; set; }
        /// <summary>
        /// 是否已有下级代理
        /// </summary>
        public bool IsChildAgent { get; set; }
        /// <summary>
        /// 是否已外包（仅表示跑腿业务）
        /// </summary>
        public bool IsEpibole { get; set; }
        /// <summary>
        /// 创建人Id
        /// </summary>
        public long CreateAdminId { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateAdminName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 修改人Id
        /// </summary>
        public long? EditAdminId { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string EditAdminName { get; set; }
    }
}
